﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:FlexGrid="clr-namespace:C1.Phone.FlexGrid;assembly=C1.Phone.FlexGrid.8"
    xmlns:local="clr-namespace:jbgswin"
    xmlns:Phone="clr-namespace:C1.Phone;assembly=C1.Phone.8"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    x:Class="jbgswin.peoplelist"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.Resources>
    	<local:dituwz x:Key="dituwzDataSource" d:IsDataSource="True"/>
    	<DataTemplate x:Key="DataTemplate1">
    		<StackPanel x:Name="StackPanelsss" Width="456" Height="70" Orientation="Horizontal">
    			
    			<CheckBox x:Name="ck" Content="aaa" Width="60" BorderThickness="0" Tag="{Binding nowid}" DoubleTap="ck_DoubleTap" />
    			
    			<TextBlock TextWrapping="Wrap" Text="{Binding nowid}" Width="43"/>
    			<TextBlock TextWrapping="Wrap" Text="{Binding name}" Width="124"/>
    			<TextBlock TextWrapping="Wrap" Text="{Binding shuoming}" Width="110"/>
    			<TextBlock TextWrapping="Wrap" Text="{Binding lx}" Width="60"/>
    			<TextBlock TextWrapping="Wrap" Text="{Binding ly}" Width="60"/>
    		</StackPanel>
    	</DataTemplate>
    	
        
    
       
    </phone:PhoneApplicationPage.Resources>

	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
<!--LayoutRoot 是包含所有页面内容的根网格-->
	<Grid x:Name="LayoutRoot" Background="Transparent" DataContext="{Binding Source={StaticResource dituwzDataSource}}">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        

		<Grid x:Name="ContentPanel" Grid.Row="0" Margin="12,0,0,10" Height="700" VerticalAlignment="Bottom" DataContext="{Binding Source={StaticResource dituwzDataSource}}">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>

			<StackPanel Orientation="Horizontal"  HorizontalAlignment="Left" VerticalAlignment="Top">
				<TextBlock TextWrapping="Wrap" Text="筛选条件" Width="92" Height="29" VerticalAlignment="Center" Margin="0,25" HorizontalAlignment="Right"/>
				<toolkit:ListPicker x:Name="pck" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Top" Width="118">
					<toolkit:ListPickerItem Content="请选择区" HorizontalAlignment="Left" Width="115" VerticalAlignment="Center"/>
					<toolkit:ListPickerItem Content="海曙区" HorizontalAlignment="Left" Width="115"/>
					<toolkit:ListPickerItem Content="江北区" HorizontalAlignment="Left" Width="115"/>
					<toolkit:ListPickerItem Content="江东区" HorizontalAlignment="Left" Width="115"/>
					<toolkit:ListPickerItem Content="鄞州区" HorizontalAlignment="Left" Width="115"/>
				</toolkit:ListPicker>
				<toolkit:DatePicker Width="141"/>
				<Button Content="搜索" Width="108" Click="Button_Click_4"/>


			</StackPanel>
			<FlexGrid:C1FlexGrid x:Name="mygrid" HorizontalAlignment="Left" VerticalAlignment="Top" Width="459" Grid.Row="2" Height="559" DataContext="{Binding}" ItemsSource="{Binding Mode=OneWay}" Click="mygrid_Click"/>
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="2" Margin="0,559,-9,0" Width="468">
				<Button Content="全选" Margin="0,0,-1,0" Click="Button_Click" Width="101"/>
				<Button Content="导入" HorizontalAlignment="Left" Margin="0,0,-132,0" VerticalAlignment="Top" Width="126" Click="Button_Click_1" />
				<Button Content="更新" HorizontalAlignment="Left" Margin="130,0,-249,0" VerticalAlignment="Top" Width="117"  Click="Button_Click_2"/>
				<Button Content="取消" HorizontalAlignment="Left" Margin="250,0,-346,0" VerticalAlignment="Top" Width="92" Click="Button_Click_3"/>
			</StackPanel>


		</Grid>
	</Grid>


</phone:PhoneApplicationPage>